package com.xdjd.mobile.business.entity.model.activity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
  表:activity_clock_supervise_record 用户监督记录表
*/
@Table(name = "activity_clock_supervise_record")
@SuppressWarnings("serial")
public class ActivityClockSuperviseRecordPo implements Serializable {

	@Id
	@Column(name="id")
    @GeneratedValue(strategy = GenerationType.AUTO)
	private Long id; 
	private Long memberId; // 监督用户id
	private String clockNo; // 打卡邀请码
	private Long additionalBonus; // 监督追加激励金（单位 分）
	private Date createTime; 
	private Date modifyTime; 

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}

	/** 设置 监督用户id,对应字段 activity_clock_supervise_record.member_id */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	/** 获取 监督用户id,对应字段 activity_clock_supervise_record.member_id */
	public Long getMemberId() {
		return this.memberId;
	}

	/** 设置 打卡邀请码,对应字段 activity_clock_supervise_record.clock_no */
	public void setClockNo(String clockNo) {
		this.clockNo = clockNo;
	}
	/** 获取 打卡邀请码,对应字段 activity_clock_supervise_record.clock_no */
	public String getClockNo() {
		return this.clockNo;
	}

	/** 设置 监督追加激励金（单位 分）,对应字段 activity_clock_supervise_record.additional_bonus */
	public void setAdditionalBonus(Long additionalBonus) {
		this.additionalBonus = additionalBonus;
	}
	/** 获取 监督追加激励金（单位 分）,对应字段 activity_clock_supervise_record.additional_bonus */
	public Long getAdditionalBonus() {
		return this.additionalBonus;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public Date getModifyTime() {
		return this.modifyTime;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ActivityClockSuperviseRecordPo other = (ActivityClockSuperviseRecordPo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
    @Override
	public String toString() {
    	StringBuilder sb = new StringBuilder();
        sb.append("ActivityClockSuperviseRecordPo [");
        		        sb.append("id=").append(id);
        		sb.append(", ");        sb.append("memberId=").append(memberId);
        		sb.append(", ");        sb.append("clockNo=").append(clockNo);
        		sb.append(", ");        sb.append("additionalBonus=").append(additionalBonus);
        		sb.append(", ");        sb.append("createTime=").append(createTime);
        		sb.append(", ");        sb.append("modifyTime=").append(modifyTime);
                sb.append("]");
		return sb.toString();
	}

}